<?php  try {	require_once 'init.php';	$ancestors = new AncestorPages($page->id());	foreach ($ancestors as $apg)	{		$path[] = array(			'name' => $apg->menuName(),			'link' => $apg->link()		);	}	$path[] = array(		'name' => $page->menuName(),		'link' => null	);	$smarty->assign('descPages', Pages::toHierarchyTree($page->id()));
	display('page');}catch(Exception $e){	Header('Location: /');}?>